package spring.cloud.simple.service.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import spring.cloud.simple.service.model.User;
import spring.cloud.simple.service.dao.UserDao;

@Service
@Transactional
public class UserService {
    @Autowired
    private UserDao userMapper;

    public List<User> findAll() {
        return userMapper.findAll();
    }
}
